package com.pfc.wifis;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.widget.Toast;

public class MainActivity extends Activity implements OnClickListener {
    /** Called when the activity is first created. */
	private Button buttonGuardar;
	private Button buttonLocalizar;
	
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        this.buttonGuardar = (Button)findViewById(R.id.buttonGuardar);
        this.buttonGuardar.setOnClickListener(this);
        this.buttonLocalizar = (Button)findViewById(R.id.buttonPosicion);
        this.buttonLocalizar.setOnClickListener(this);
        
        
    }

	@Override
	public void onClick(View v) {
		switch (v.getId()){
		case (R.id.buttonGuardar):
			Intent i = new Intent(this, GuardarLocalizacion.class);
			startActivity(i);
			break;
		
		case (R.id.buttonPosicion):
			Intent j = new Intent(this, GuardarLocalizacion.class);
			startActivity(j);
			break;
		}
	}
}

